import { Provide } from '@midwayjs/core';
import { BaseService } from '@cool-midway/core';
import { InjectEntityModel } from '@midwayjs/typeorm';
import { Repository } from 'typeorm';
import { MedicalTemplateEntity } from '../entity/template';
import { MedicalTemplateFieldEntity } from '../entity/template_field';

/**
 * 病历模板
 */
@Provide()
export class MedicalTemplateService extends BaseService {
  @InjectEntityModel(MedicalTemplateEntity)
  medicalTemplateEntity: Repository<MedicalTemplateEntity>;

  @InjectEntityModel(MedicalTemplateFieldEntity)
  medicalTemplateFieldEntity: Repository<MedicalTemplateFieldEntity>;
}
